package 接口;

public abstract class Person {
    private String name;
    private int age;

    public Person() {
    }
    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
}
//----------------------------------------------------------------
abstract class Sporter extends Person{
    public Sporter() {
    }
    public Sporter(String name, int age) {
        super(name, age);
    }
    //学习
    public abstract void study();
}
//------------------------------------------------------------------
abstract class Coach extends Person{
    public Coach() {
    }
    public Coach(String name, int age) {
        super(name, age);
    }
    //教学
    public abstract void teach();
    //

}
